home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
219
/
mv
/
makefile
next >
Wrap
Makefile
|
1995-03-13
|
1KB
|
67 lines
#
# makefile for mv v1.0 - Unix-like move file utility
#
# Copyright 1989 Edwin Hoogerbeets
#
# This code may be freely redistributed as long as no charges other than
# reasonable copying fees are levied for it.
#
#
# Set these to the executable names you want.
#
MVNAME=mv
CPNAME=cp
RMNAME=rm
# destination of the executables
DESTDIR=c:
#
# Set this to -DARP and -la32 to include arp wildcarding
#
ARP=-DARP
ARPLIB=-la32
#
# Set this to -g for sdb
#
LNDEBUG=
#-g
#
# Add -DDEBUG and -n for verbose debugging and sdb
#
DEBUG=
#-n
#-DDEBUG
CFLAGS=+L $(DEBUG) $(ARP) -DMVNAME="$(MVNAME)" -DCPNAME="$(CPNAME)" \
-DRMNAME="$(RMNAME)"
#
# do copy first, so we can use it to copy itself, instead of relinking!
#
all: $(CPNAME) $(RMNAME) $(MVNAME)
$(CPNAME): mv.o
ln $(LNDEBUG) mv.o $(ARPLIB) -lc32 -o $@
$(MVNAME): $(CPNAME)
$(CPNAME) $(CPNAME) $@
$(RMNAME): $(CPNAME)
$(CPNAME) $(CPNAME) $@
clean:
$(RMNAME) -f $(CPNAME) $(MVNAME) $(RMNAME) $(CPNAME).dbg \
$(RMNAME).dbg $(MVNAME).dbg mv.o
mv.o: mv.c
install: all
$(CPNAME) -f $(CPNAME) $(RMNAME) $(MVNAME) $(DESTDIR)